home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / games / nhak_src.zip / MACALERT.H < prev    next >
C/C++ Source or Header  |  1993-03-16  |  1KB  |  67 lines

  1. /*    SCCS Id: @(#)MacAlert.h        3.0    90/01/06
  2. /*      Copyright (c) Jon Watte  1989        */ 
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifndef MACALERT_H
  6. #define MACALERT_H
  7.  
  8. #define MAtype 'MAlt'
  9.  
  10.  
  11. typedef struct Malrt {
  12.     int width;
  13.     int height;
  14.     int PICTno;
  15.     char text[256];
  16.     char but1[32];
  17.     char but2[32];
  18.     char but3[32];
  19.     char but4[32];
  20.     int def;
  21.     int esc;
  22. } MAlrt, * MAlrtPtr, ** MAlrtHandle;
  23.  
  24.  
  25. extern int UseMacAlert(int MAno);
  26. extern int UseMacAlertText(int MAno, char * txt);
  27. extern int MacAlert(int width, int height, int PICTno, char * text,
  28.     char * but1, char * but2, char * but3, char * but4, int def, int esc);
  29. extern int TrackThem(Rect * b_rect, char * hi_lite, int no_butts);
  30. extern int mac_more(FILE * fp, int strip);
  31.  
  32. /* Minimum values to which given values will be justified if lower */
  33.  
  34. #define MIN_WIDTH 170
  35. #define MIN_HEIGHT 100
  36.  
  37. /* Good values for a "normal" alert */
  38.  
  39. #define WIDTH 250
  40. #define HEIGHT 200
  41.  
  42. /* Constants to tweak how to draw the buttons */
  43.  
  44. #define BUT_HEIGHT 20
  45. #define BUT_WIDTH 50
  46. #define BUT_SPACING 10
  47. #define BUT_MARGIN 5
  48. #define BUT_CORNER 10
  49.  
  50. /* Frame around the default button */
  51.  
  52. #define FRAME_WIDTH 3
  53. #define FRAME_OFFSET 1
  54. #define FRAME_CORNER 16
  55.  
  56. /* How to draw the border */
  57.  
  58. #define BORDER_PAT 5
  59. #define BORDER_WIDTH 3
  60.  
  61. /* How long to mark the pressed ? */
  62.  
  63. #define FLASH_TIME 10 /* In ticks */
  64.  
  65.  
  66. #endif
  67.